import json
import os


class LocalData(object):

    def get_create_order_need_data(self):
        with open(os.path.abspath('my_data/order.json'), 'r') as jf:
            return json.load(jf)

    def get_create_order_activity_data(self, active):
        with open(os.path.abspath('my_data/activity_order_' + active + '.json'), 'r') as jf:
            return json.load(jf)
